package com.tz.farmer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class SupervisionInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "巡查对象")
    private String policeObject;
    @ApiModelProperty(value = "联系人")

    private String person;
    @ApiModelProperty(value = "联系电话")

    private String phone;
    @ApiModelProperty(value = "巡查单位")

    private String policeUnit;
    @ApiModelProperty(value = "巡查人")

    private String policePerson;

    @ApiModelProperty(value = "巡查时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime policeTime;

    @ApiModelProperty(value = "检查情况")

    private String inspection;
    @ApiModelProperty(value = "现场照片")

    private String photo;
    @ApiModelProperty(value = "巡查对象签字")

    private String sign;


}